import requests
import json

url = "https://api.openai.com/v1/chat/completions"

payload = json.dumps({
  "model": "gpt-3.5-turbo",
  "messages": [
    {
      "role": "system",
      "content": "无论用户问什么，你总是回答：“啊对对对”"
    },
    {
      "role": "user",
      "content": "你好"
    }
  ],
  "temperature": 0.7
})

headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Bearer sess-F22j0GoNQ6ojQdRLqdA7FXZpImVw8m2i1H5tfZNE',
}
proxies = {'http': 'http://127.0.0.1:7890', 'https': 'http://127.0.0.1:7890'}
response = requests.request("POST", url, headers=headers, data=payload, proxies=proxies)

print(response.text)
